package com.at.atapp;

import java.util.Random;
import java.util.Vector;

import android.app.Activity;
import android.os.Bundle;
import android.widget.ImageView;

public class ATTurn extends Activity {

	Vector<Object> images = new Vector<Object>();
	
	
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
	    super.onCreate(savedInstanceState);
	    setContentView(R.layout.activity_atturn);
	    setImages();
	    // TODO Auto-generated method stub
	    
	    ImageView image = (ImageView) findViewById(R.id.imageturn);
	    
	    Random rndom	= new Random();
	    
	    image.setImageResource((Integer)images.elementAt(rndom.nextInt(images.size())));
	}
	
	public void setImages(){

		
		
		images.add(R.drawable.turn1);
		images.add(R.drawable.turn2);
		images.add(R.drawable.turn3);
		
	}

}
